Skip to content

Instantly share code, notes, and snippets.

@robert-saramet
robert-saramet / riscv_guide_1.md
Created July 19, 2025 10:11
Comprehensive Guide to 32-Bit RISC-V Assembly Programming (RV32I)

Comprehensive Guide to 32-Bit RISC-V Assembly Programming (RV32I)

This guide provides a thorough introduction to programming in 32-bit RISC-V assembly language, focusing on the RV32I base integer instruction set. It starts with content from this cheat sheet and expands it into a complete, structured reference. The guide is organized for easy navigation, with clear sections, tables for listings, explanations, examples, and notes. It draws from official specifications and tutorials to ensure accuracy and completeness. Beginners can follow sequentially, while experienced users can reference specific sections.

Key assumptions:

  • We use the GNU Assembler (GAS) syntax, common for RISC-V tools.
  • Examples assume a bare-metal or simple simulator environment (e.g., RARS, Spike, or QEMU).
  • RV32I is the base; extensions like M (multiply/divide) are noted but not required unless specified.
  • Code snippets are testable in simulators; error handling and overflows are ign
@wKovacs64
wKovacs64 / fixed-width-numbers.css
Created February 15, 2018 21:45
Fixed width numbers CSS
/* https://twitter.com/wesbos/status/932644812582522880/ */
font-feature-settings: "tnum";
font-variant-numeric: tabular-nums;
@TheCubiq
TheCubiq / restore-yellow-stars.user.css
Last active September 28, 2026 21:12
G**gle decided ⭐ are blue, so restoring it back
/* ==UserStyle==
@name Restore Yellow Stars | Gmail
@namespace github.com/openstyles/stylus
@version 1.0.0
@description Simple Gmail userscript that restores your old yellow icons.
@author cubiq.dev
==/UserStyle== */
@-moz-document domain("mail.google.com") {
/*
shoutout to rebane2001 for her userscript version with even cooler icon skin
@loggedbytucker-blip
loggedbytucker-blip / pi-commands.md
Last active September 28, 2026 21:07
Raspberry Pi 5 media server — Immich + Jellyfin + Tailscale

Raspberry Pi 5 Media Server — Commands

Immich (photos) + Jellyfin (movies/TV) + Tailscale (access from anywhere). Commands only, in the order they're run in the video.

Tested August 2026 on:

Hardware Raspberry Pi 5, 8GB — CanaKit Starter Kit PRO
blueprint:
name: ZHA - Tuya button (TS0041)
description: Automate your Tuya button (TS0041).
domain: automation
input:
tuya_button:
name: Target Tuya button device
selector:
device:
integration: zha
@samsch
samsch / stop-using-jwts.md
Last active September 28, 2026 20:37
Stop using JWTs

Stop using JWTs!

TLDR: JWTs should not be used for keeping your user logged in. They are not designed for this purpose, they are not secure, and there is a much better tool which is designed for it: regular cookie sessions.

If you've got a bit of time to watch a presentation on it, I highly recommend this talk: https://www.youtube.com/watch?v=pYeekwv3vC4 (Note that other topics are largely skimmed over, such as CSRF protection. You should learn about other topics from other sources. Also note that "valid" usecases for JWTs at the end of the video can also be easily handled by other, better, and more secure tools. Specifically, PASETO.)

A related topic: Don't use localStorage (or sessionStorage) for authentication credentials, including JWT tokens: https://www.rdegges.com/2018/please-stop-using-local-storage/

The reason to avoid JWTs comes down to a couple different points:

  • The JWT specification is specifically designed only for very short-live tokens (~5 minute or less). Sessions

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@jlia0
jlia0 / agent loop
Last active September 27, 2026 17:22
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@ongkiii
ongkiii / IPA-Sources.md
Last active September 28, 2026 20:27
REPOS/TELEGRAM CHANNELS LIST BY u/angkitbharadwaj